import request from '@/hook/interceptors'

// 获取 Google 登录 URL
export const oauthLogin = () => {
    return request({
        url: import.meta.env.VITE_USER_PATH + "/oAuth/login",
        method: "get",
        // 关键：确保发送凭据
        withCredentials: true
    });
}

export const oauthUserInfo = () => {
    return request({
        url: import.meta.env.VITE_USER_PATH + "/oAuth/user",
        method: "get",
        // 关键：确保发送凭据
        withCredentials: true
    });
}